package com.yuandian.management.vo;


import com.yuandian.utils.StringUtils;

import java.io.Serializable;


/**
 * 迁移自2.5
 * 由于需要用到动态表名，mybatis必须把所有属性是字符串的加上 单引号。 时间是Date类型的在外面转成字符串
 * 
 * @author fucx
 * @date 2020/06/08
 */
public class AgentStatusInfoDb extends AgentStatusInfoPojo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String lastLaunchTimeStr;
    private String lastUpdateTimeStr;
    private String createTimeStr;
    private String updateTimeStr;

    @Override
    public void setProbeIp(String probeIp) {
        super.setProbeIp("'" + probeIp + "'");
    }

    @Override
    public void setAliasName(String aliasName) {
        if (!StringUtils.isNotBlank(aliasName)) {
            super.setAliasName("''");
        } else {
            super.setAliasName("'" + aliasName + "'");
        }
    }

    @Override
    public void setAgentIp(String agentIp) {
        super.setAgentIp("'" + agentIp + "'");
    }

    @Override
    public void setHostName(String hostName) {
        super.setHostName("'" + hostName + "'");
    }

    @Override
    public void setVersion(String version) {
        super.setVersion("'" + version + "'");
    }

    @Override
    public void setFormatTime(String formatTime) {
        super.setFormatTime("'" + formatTime + "'");
    }

    @Override
    public void setAllDiskInfo(String allDiskInfo) {
        super.setAllDiskInfo("'" + allDiskInfo + "'");
    }

    @Override
    public void setUpdateBy(String updateBy) {
        super.setUpdateBy("'" + updateBy + "'");
    }

    @Override
    public void setRemarks(String remarks) {
        super.setRemarks("'" + remarks + "'");
        if (StringUtils.isEmpty(remarks)) {
            super.setRemarks("''");
        } else {
            super.setRemarks("'" + remarks + "'");
        }
    }

    @Override
    public void setCapturePort(String capturePort) {
        super.setCapturePort("'" + capturePort + "'");
    }

    @Override
    public void setRemoveDiskPartition(String removeDiskPartition) {
        super.setRemoveDiskPartition("'" + removeDiskPartition + "'");
    }

    @Override
    public void setAgentThreshold(String agentThreshold) {
        super.setAgentThreshold("'" + agentThreshold + "'");
    }

    public String getLastLaunchTimeStr() {
        return lastLaunchTimeStr;
    }

    public void setLastLaunchTimeStr(String lastLaunchTimeStr) {
        this.lastLaunchTimeStr = "'" + lastLaunchTimeStr + "'";
    }

    public String getLastUpdateTimeStr() {
        return lastUpdateTimeStr;
    }

    public void setLastUpdateTimeStr(String lastUpdateTimeStr) {
        this.lastUpdateTimeStr = "'" + lastUpdateTimeStr + "'";
    }

    public String getCreateTimeStr() {
        return createTimeStr;
    }

    public void setCreateTimeStr(String createTimeStr) {
        this.createTimeStr = "'" + createTimeStr + "'";
    }

    public String getUpdateTimeStr() {
        return updateTimeStr;
    }

    public void setUpdateTimeStr(String updateTimeStr) {
        this.updateTimeStr = "'" + updateTimeStr + "'";
    }

}
